package com.gitee.order.service.impl;

import com.gitee.order.service.OrderService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {


    @Trace
    @Tags({@Tag(key = "params", value = "arg[0]"),
            @Tag(key = "getOrder", value = "returnedObj")})
    @Override
    public String getOrder(Integer id) {
        return "tom is a cat.";
    }
}
